Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 9 - Camera Objects / Camera Objects Reference
Data Structures


Aspect Ratio Camera Data Structure

You use an aspect ratio camera data structure to get or set information about an aspect ratio camera. An aspect ratio camera data structure is defined by the TQ3ViewAngleAspectCameraData data type.

typedef struct TQ3ViewAngleAspectCameraData {
   TQ3CameraData              cameraData;
   float                      fov;
   float                      aspectRatioXToY;
} TQ3ViewAngleAspectCameraData;
Field Description
cameraData
A camera data structure specifying basic information about the aspect ratio camera.
fov
The camera's maximum field of view. This parameter should contain a positive floating-point value specified in radians. If the value in the aspectRatioXToY field is greater than 1.0, the field of view is vertical; if the value in the aspectRatioXToY field is less than 1.0, the field of view is horizontal.
aspectRatioXToY
The camera's horizontal-to-vertical aspect ratio. To avoid distortion, this ratio should be the same as the ratio of the width to the height of the camera's view port.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996